package com.example.travel.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author : LinQingLiang
 * @file : File.java
 * @Since : 2023/1/26 14:25
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_file")
public class Files {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("文件名称")
    private String name;
    @ApiModelProperty("文件类型")
    private String type;
    @ApiModelProperty("文件大小")
    private Long size;
    @ApiModelProperty("下载链接")
    private String url;
    @ApiModelProperty("文件md5")
    private String md5;
    @ApiModelProperty("逻辑删除")
    private boolean isDelete;
    @ApiModelProperty("是否禁用")
    private boolean enable;

}
